﻿using System;
using System.Collections.Generic; 
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class SevenColorbetting : System.Web.UI.Page
{
    protected Model.LotteryQs lotteryqs = null;
    protected decimal winmonenyTotal = 0;
    protected List<Model.LotteryDes> problemList = null;
    protected List<Model.NewsSite> newsList = null;
    protected List<Model.UsersAccount> userAccount = null;
    protected decimal jiangjin2 = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        lotteryqs = BLL.LotteryQs.GetModel(1);
        int totalCount = 0;
        problemList = BLL.LotteryDes.GetPageList_Where(0, 4, 2, out  totalCount);

        int newsCount=0;
        newsList = BLL.NewsSite.GetPageList_Where(0, 20, 9, out  newsCount);   
        //用户账户
        int totalCount2 = 0;
        userAccount = BLL.UsersAccount.getList(0, int.MaxValue, out totalCount2);
        foreach (Model.UsersAccount user in userAccount)
        {
            winmonenyTotal += user.winTotal;
        }
        jiangjin2 = Convert.ToDecimal(winmonenyTotal) / 100000000;
    }
    public string SelectName(object Uid)
    {
        Model.CMember cm = BLL.CMember.GetModel(Convert.ToInt32(Uid));
        if (cm != null)
        {
            return cm.nickname;//用户真实姓名
        }
        else
        {
            return "***";
        }
    }
}